﻿<%@ Page Title="有害生物药品药械防治平台" Language="C#" MasterPageFile="~/ecshop/shop.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="jnxc.Web.ecshop.index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="dk">
        <div class="fhg">
            <div class="xlcd">
                <div class="banner">
                    <ul id="nav">
                        <li id="mainCate-2" class="mainCate evenLeval">
                            <h3><span>&gt;</span><a href="">林业植物</a></h3>
                            <p><a href="slist.aspx?type=1&name=杨树">杨树</a>&nbsp;<a href="slist.aspx?type=1&name=槐树">槐树</a>&nbsp;<a href="slist.aspx?type=1&name=雪松">雪松</a></p>
                            <p><a href="slist.aspx?type=1&name=女贞">女贞</a>&nbsp;<a href="slist.aspx?type=1&name=白蜡">白蜡</a>&nbsp;<a href="slist.aspx?type=1&name=梧桐">梧桐</a></p>
                            <div class="subCate" style="display: none;">
                                <ul id="sub-ul-1">
                                    <h4>禾本科作物</h4>
                                    <li><span><a href="slist.aspx?type=1&name=小麦">小麦</a><a href="slist.aspx?type=1&name=玉米">玉米</a><a href="slist.aspx?type=1&name=水稻">水稻</a><a href="slist.aspx?type=1&name=大麦">大麦</a></span><span><a href="slist.aspx?type=1&name=黑麦" class="sub_width">黑麦</a><a href="slist.aspx?type=1&name=燕麦">燕麦</a><a href="slist.aspx?type=1&name=谷子">谷子</a><a href="slist.aspx?type=1&name=糜子">糜子</a></span><span><a href="slist.aspx?type=1&name=黍子">黍子</a><a href="slist.aspx?type=1&name=">高粱</a><a href="slist.aspx?type=1&name=老白干香型">老白干香型</a><a href="slist.aspx?type=1&name=復合香">復合香</a></span><span><a href="slist.aspx?type=1&name=荞香型" class="sub_width">荞香型</a><a href="slist.aspx?type=1&name=">青稞清香型</a><a href="slist.aspx?type=1&name=米香型">米香型</a></span> </li>
                                </ul>
                                <ul id="sub-ul-2">
                                    <h4>阔叶作物</h4>
                                    <li><span><a href="slist.aspx?type=1&name=大豆">大豆</a><a href="slist.aspx?type=1&name=甘薯">甘薯</a><a href="slist.aspx?type=1&name=马铃薯">马铃薯</a><a href="slist.aspx?type=1&name=荞麦">荞麦</a></span></li>
                                </ul>
                            </div>
                        </li>
                        <%--<li id="mainCate-3" class="mainCate">
                            <h3><span>&gt;</span><a href="">有害生物</a></h3>
                            <p><a href="slist.aspx?type=0&name=美国白蛾">美国白蛾</a><a href="slist.aspx?type=0&name=舞毒蛾">舞毒蛾</a><a href="slist.aspx?type=0&name=松墨天牛">松墨天牛</a></p>
                            <p><a href="slist.aspx?type=0&name=松材线虫病">松材线虫病</a><a href="slist.aspx?type=0&name=杨树黑斑病">杨树黑斑病</a></p>
                            <p><a href="slist.aspx?type=0&name=苹果腐烂病">苹果腐烂病</a></p>

                            <div class="subCate" style="display: none;">
                                <ul id="Ul1">
                                    <h4>禾本科作物</h4>
                                    <li><span><a href="">小麦</a><a href="">玉米</a><a href="">水稻</a><a href="">大麦</a></span><span><a href="" class="sub_width">黑麦</a><a href="">燕麦</a><a href="">谷子</a><a href="">糜子</a></span><span><a href="">黍子</a><a href="">高粱</a><a href="">老白干香型</a><a href="">復合香</a></span><span><a href="" class="sub_width">荞香型</a><a href="">青稞清香型</a><a href="">米香型</a><a href="">其他</a></span> </li>
                                </ul>
                                <ul id="Ul2">
                                    <h4>阔叶作物</h4>
                                    <li><span><a href="">大豆</a><a href="">甘薯</a><a href="">马铃薯</a><a href="">荞麦</a></span><a href="">其他</a></span> </li>
                                </ul>
                            </div>
                        </li>--%>
                        <%--<li id="mainCate-2" class="mainCate evenLeval">
                            <h3><span>&gt;</span><a href="">林业植物</a></h3>

                            <div class="mlist">
                                <asp:Repeater ID="rptplant" runat="server">
                                    <ItemTemplate>
                                        <a href="slist.aspx?type=1&name=<%# Eval("pname") %>"><%# Eval("pname") %></a>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <div style="clear: both;"></div>
                            </div>
                            <div class="subCate" style="display: none;">
                                <asp:Repeater ID="rptps" runat="server" OnItemDataBound="rptps_ItemDataBound">
                                    <ItemTemplate>
                                        <ul>
                                            <h4><%# Eval("ppname") %></h4>
                                            <li><span>
                                                <asp:Repeater ID="rptps_list" runat="server">
                                                    <ItemTemplate>
                                                        <a href="slist.aspx?type=1&name=<%# Eval("pname") %>"><%# Eval("pname") %></a>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </span></li>
                                        </ul>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </li>
                        --%>
                        <li id="mainCate-3" class="mainCate">
                            <h3><span>&gt;</span><a href="">有害生物</a></h3>
                            <div class="mlist">
                                <asp:Repeater ID="rptharm" runat="server">
                                    <ItemTemplate>
                                        <a href="slist.aspx?type=0&name=<%# Eval("hname") %>"><%# Eval("hname") %></a>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <div style="clear: both;"></div>
                            </div>

                            <div class="subCate" style="display: none;">
                                <asp:Repeater ID="rpths" runat="server" OnItemDataBound="rpths_ItemDataBound">
                                    <ItemTemplate>
                                        <ul>
                                            <h4><%# Eval("phname") %></h4>
                                            <li><span>
                                                <asp:Repeater ID="rpths_list" runat="server">
                                                    <ItemTemplate>
                                                        <a href="slist.aspx?type=0&name=<%# Eval("hname") %>"><%# Eval("hname") %></a>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </span></li>
                                        </ul>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </li>
                    </ul>
                </div>
                <script type="text/javascript">
                    jQuery("#nav").slide({ type: "menu", titCell: ".mainCate", targetCell: ".subCate", delayTime: 0, triggerTime: 0, defaultPlay: false, returnDefault: true });
                </script>


            </div>
            <div class="huandeng">
                <div id="jdAdSlide" class="jd_ad_slide">
                    <img src="images/index_04.jpg" class="jd_ad_img">
                    <img data-src="images/index_04.jpg" class="jd_ad_img">
                    <img data-src="images/index_04.jpg" class="jd_ad_img">
                    <img data-src="images/index_04.jpg" class="jd_ad_img">
                    <img data-src="images/index_04.jpg" class="jd_ad_img">
                    <img data-src="images/index_04.jpg" class="jd_ad_img">
                    <img data-src="images/index_04.jpg" class="jd_ad_img">
                    <div id="jdAdBtn" class="jd_ad_btn"></div>
                    <!-- add active -->

                </div>

                <script src="js/jquery-powerSwitch.js"></script>
                <script>
                    // 大的图片广告
                    // 根据图片创建id,按钮元素等，实际开发建议使用JSON数据类似
                    var htmlAdBtn = '';
                    $("#jdAdSlide img").each(function (index, image) {
                        var id = "adImage" + index;
                        htmlAdBtn = htmlAdBtn + '<a href="javascript:" class="jd_ad_btn_a" data-rel="' + id + '">' + (index + 1) + '</a>';
                        image.id = id;
                    });
                    $("#jdAdBtn").html(htmlAdBtn).find("a").powerSwitch({
                        eventType: "hover",
                        classAdd: "active",
                        animation: "fade",
                        autoTime: 5000,
                        onSwitch: function (image) {
                            if (!image.attr("src")) {
                                image.attr("src", image.attr("data-src"));
                            }
                        }
                    }).eq(0).trigger("mouseover");

                    // 便民服务
                    $("#servNav a").powerSwitch({
                        classAdd: "active",
                        eventType: "hover",
                        onSwitch: function () {
                            $("#pointLine").animate({ "left": $(this).position().left }, 200);
                        }
                    });
                </script>

            </div>
            <div class="gonggao">


                <script type="text/javascript">
                    $(document).ready(function () {
                        jQuery.jqtab = function (tabtit, tab_conbox, shijian) {
                            $(tab_conbox).find("li").hide();
                            $(tabtit).find("li:first").addClass("thistab").show();
                            $(tab_conbox).find("li:first").show();

                            $(tabtit).find("li").bind(shijian, function () {
                                $(this).addClass("thistab").siblings("li").removeClass("thistab");
                                var activeindex = $(tabtit).find("li").index(this);
                                $(tab_conbox).children().eq(activeindex).show().siblings().hide();
                                return false;
                            });

                        };
                        /*调用方法如下：*/
                        //$.jqtab("#tabs", "#tab_conbox", "click");

                        $.jqtab("#tabs2", "#tab_conbox2", "mouseenter");

                    });
                </script>
                <div id="tabbox">
                    <ul class="tabs" id="tabs2">
                        <li><a href="#">&nbsp;&nbsp;&nbsp;公告&nbsp;&nbsp;</a></li>
                        <li><a href="#">&nbsp;&nbsp;&nbsp;安全&nbsp;&nbsp;</a></li>
                    </ul>
                    <ul class="tab_conbox" id="tab_conbox2">
                        <li class="tab_con">
                            <asp:Repeater ID="rptgg" runat="server">
                                <ItemTemplate>
                                    <div><a href="shownew.aspx?id=<%# Eval("nid") %>" target="_blank"><%# jnxc.Common.StringPlus.getStr(Eval("ntitle").ToString(),20,"") %></a></div>
                                </ItemTemplate>
                            </asp:Repeater>
                        </li>
                        <li class="tab_con">
                            <asp:Repeater ID="rptaq" runat="server">
                                <ItemTemplate>
                                    <div><a href="shownew.aspx?id=<%# Eval("nid") %>" target="_blank"><%# jnxc.Common.StringPlus.getStr(Eval("ntitle").ToString(),20,"") %></a></div>
                                </ItemTemplate>
                            </asp:Repeater>
                        </li>

                    </ul>
                </div>
            </div>
        </div>
        <div class="fenleichanpin">最新产品</div>
        <div class="biankuang">
            <asp:Repeater ID="rptnew" runat="server">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <a href="show.aspx?id=<%# Eval("pid") %>">
                            <div class="pbox">
                                <img src="<%# Eval("ppic") %>" onload="AutoResizeImage(222,222,this)"  />
                                    </div>
                            <h6><%# Eval("pname") %></h6>

                        </a>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>
        <div class="fenleichanpin"><a href="slist.aspx?t=1">物理防治</a> </div>
        <div class="biankuang">
            <asp:Repeater ID="rpt1" runat="server">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <a href="show.aspx?id=<%# Eval("pid") %>">
                            <div class="pbox">
                                <img src="<%# Eval("ppic") %>" onload="AutoResizeImage(222,222,this)"  />
                                    </div>
                            <h6><%# Eval("pname") %></h6>

                        </a>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>
        <div class="fenleichanpin"><a href="slist.aspx?t=2">生物防治</a></div>
        <div class="biankuang">
            <asp:Repeater ID="rpt2" runat="server">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <a href="show.aspx?id=<%# Eval("pid") %>">
                            <div class="pbox">
                                <img src="<%# Eval("ppic") %>" onload="AutoResizeImage(222,222,this)"  />
                                    </div>
                            
                            <h6><%# Eval("pname") %></h6>

                        </a>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>
        <div class="fenleichanpin"><a href="slist.aspx?t=3">化学防治</a></div>
        <div class="biankuang">
            <asp:Repeater ID="rpt3" runat="server">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <a href="show.aspx?id=<%# Eval("pid") %>">
                            <div class="pbox">
                                <img src="<%# Eval("ppic") %>" onload="AutoResizeImage(222,222,this)"  />
                                    </div>
                            <h6><%# Eval("pname") %></h6>

                        </a>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>

        <div class="clear"></div>

    </div>


</asp:Content>
